﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Library/Reportes.master" AutoEventWireup="false"
    CodeFile="RDLCAPCruce.aspx.vb" Inherits="Reportes_RDLCAPCruce" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .AlineacionDerecha
        {
            text-align: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h1>
        Consulta de cruce de variables 
        CAP<asp:ScriptManager ID="ScriptManager1" 
            runat="server">
        </asp:ScriptManager>
    </h1>
    <p>
        Permite cruzar la información de hasta 4 variables. Para ello seleccione las variables a cruzar, y si es necesario aplique algún filtro a cada variable. 
        <br />
        Las variables 1, 2 y 3 se muestran en las filas del reporte, la variable 4 se 
        muestra en las columnas de este.</p>
    <p>
        La grafica se genera cruzando la viariable 1 y la variable 4.</p>

<table>
        <tr>
        <th colspan="2" >Variables a cruzar</th>
        <th>Filtro</th>
        </tr>
        <tr>
            <td>
                Variable 1
            </td>
            <td>
                <asp:DropDownList ID="ddlCampo1" runat="server" AutoPostBack="True">
                </asp:DropDownList>
            </td>
            <td>
                
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                <asp:DropDownList ID="ddlfiltro1" runat="server">
                </asp:DropDownList>
                </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlCampo1" 
                            EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
                
                
            </td>
        </tr>
        <tr>
            <td>
                Variable 2
            </td>
            <td>
                <asp:DropDownList ID="ddlCampo2" runat="server"  AutoPostBack="True">
                </asp:DropDownList>
            </td>
            <td>
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                <ContentTemplate>
                <asp:DropDownList ID="ddlfiltro2" runat="server">
                </asp:DropDownList>
                 </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlCampo2" 
                            EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td>
                Variable 3
            </td>
            <td>
                <asp:DropDownList ID="ddlCampo3" runat="server"  AutoPostBack="True">
                </asp:DropDownList>
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                <ContentTemplate>
                <asp:DropDownList ID="ddlfiltro3" runat="server">
                </asp:DropDownList>
                </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlCampo3" 
                            EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td>
                Variable 4
            </td>
            <td>
                <asp:DropDownList ID="ddlCampo4" runat="server"  AutoPostBack="True">
                </asp:DropDownList>
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                <ContentTemplate>
                <asp:DropDownList ID="ddlfiltro4" runat="server">
                </asp:DropDownList>
                </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="ddlCampo4" 
                            EventName="SelectedIndexChanged" />
                    </Triggers>
                </asp:UpdatePanel>
            </td>
        </tr>


        <tr>
            <td colspan="3" class="botones">
                <asp:Button ID="btnConsultar" runat="server" Text="Ver reporte" CssClass="boton" />
               
            </td>
        </tr>
    </table>
    <table>
        <tr>
            <td colspan="2">
              
              
              
                <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" 
                    Font-Size="8pt" InteractiveDeviceInfos="(Collection)" 
                    SizeToReportContent="True" WaitMessageFont-Names="Verdana" 
                    WaitMessageFont-Size="14pt">
                    <LocalReport ReportPath="Reportes\rdls\RptCruceCAP.rdlc">
                    </LocalReport>
                </rsweb:ReportViewer>
              
              
              
              </td>
        </tr>
       
    </table>
</asp:Content>
